<?php

class m130630_150845_add_table_settings extends CDbMigration
{
	public function up()
	{
		$this->createTable('settings', array(
			'id' => 'pk',
			'type' => 'varchar(50) not null',
			'name' => 'varchar(50) not null',
			'value' => 'TEXT'
		), 'ENGINE = InnoDB
			DEFAULT CHARACTER SET = utf8
			COLLATE = utf8_unicode_ci');
	}

	public function down()
	{
		$this->dropTable("settings");
		return true;
	}

	/*
	// Use safeUp/safeDown to do migration with transaction
	public function safeUp()
	{
	}

	public function safeDown()
	{
	}
	*/
}